package com.xiaolei.openokjoke.Beans

//https://www.runoob.com/kotlin/kotlin-class-object.html
class JokeBean(var id: Int,
               var page: String,
               var type: String,
               var title: String) {
    var content: String? = null
        get() = field?.replace("<br />", "")
                ?.replace("<br>", "")
                ?.replace("<p>", "")
                ?.replace("</p>", "")

    enum class Type {
        txt, jpg, gif
    }
}